<?php

class m120229_023809_material_base_data extends CDbMigration {
	public function safeUp() {
		$this->addColumn('erp_material_model', 'statePrice', 'decimal(10,3)');
		
		$otherCategory=new MaterialCategory();
		$otherCategory->name='其它';
		$otherCategory->save();
	}

	public function safeDown() {
		$this->dropColumn('erp_material_model', 'statePrice');
	}
}
